package com.cjc.okhttp;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class test5 {
	public static void main(String[] args) {
		DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
		try {
			Date d2 = df.parse("2004-02-28");
			Date d1 = df.parse("2004-03-1");
			long diff = d1.getTime() - d2.getTime();
			long days = diff / (1000 * 60 * 60 * 24);
			System.out.println(days);
		} catch (Exception e) {
		}
	}
}
